package com.dspsemi.wodi;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class LaunchActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_launch);

		// 检查新版本
		new Thread() {
			public void run() {
				mHandler.sendEmptyMessageDelayed(0, 3000);
			};
		}.start();
	}

	private Handler mHandler = new Handler() {
		public void handleMessage(android.os.Message msg) {
			Intent i = new Intent();
			i.setClass(LaunchActivity.this, LoginActivity.class);
			startActivity(i);
			finish();
		};
	};
}
